import _http from '@/utils/http'

export default {
    getTableData(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/qry/list',
            apiName: '平台列表',
        }, params, loading, headers)
    },
    packageList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/package/list',
            apiName: '产品',
        }, params, loading, headers)
    },
    packageAdd(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/package/add',
            apiName: '新增产品',
        }, params, loading, headers)
    },
    packageModify(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/package/modify',
            apiName: '修改渠道产品',
        }, params, loading, headers)
    },
    shopList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/qry/shop/list',
            apiName: '查询渠道对应商户',
        }, params, loading, headers)
    },
    packageDelete(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/channel/package/delete',
            apiName: '删除渠道产品',
        }, params, loading, headers)
    },
}
